﻿using OnHook.Business.Dto.Order;
using OnHook.Business.Vo.Order;
using OnHook.Framework.Exceptions;

namespace OnHook.Business.IServices
{
    /// <summary>
    /// 订单服务
    /// </summary>
    public interface IOrderService
    {
        /// <summary>
        /// 购买商品
        /// </summary>
        /// <param name="params"></param>
        /// <returns></returns>
        /// <exception cref="BusinessException"></exception>
        Task<CreateOrderResultVo<IDictionary<string, string>>> BuyGoodsAsync(CreateOrderDto @params);
    }
}
